package com.wuyan.locationdog.database

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey


@Entity
data class LatLngEntity(
    @ColumnInfo(name = "title")
    var title: String,
    @ColumnInfo(name = "snippet")
    var snippet: String,
    @ColumnInfo(name = "longitude")
    var longitude: Double,//经度
    @ColumnInfo(name = "latitude")
    var latitude: Double,
    @ColumnInfo(name = "provinceName")
    var provinceName: String,
    @ColumnInfo(name = "cityName")
    var cityName: String

) {
    @PrimaryKey(autoGenerate = true) // autoGenerate属性 将在插入时自动增加
    var id: Int = 0
}